package com.bytedance.frameworks.a.a;

import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;

public abstract class BaseNewDetailActivity extends AutoLayoutActivity {
    private boolean a;

    public BaseNewDetailActivity() {

    }

    public void a() {
        this.a = true;
    }

    protected void beforeSuperOnCreate(Bundle bundle) {
    }

    public abstract void initView();

    public abstract void c();

    public abstract void d();

    public abstract void e();

    public void onCreate(Bundle savedInstanceState) {
        this.a = false;
        super.setContentView(com.ss.android.article.browser.R.layout.new_detail_activity);
        this.initView();
        this.beforeSuperOnCreate(savedInstanceState);
        super.onCreate(savedInstanceState);
        if (!this.a) {
            this.c();
            if (!this.a) {
                this.d();
                if (!this.a) {
                    this.e();
                }
            }
        }
    }

    @Deprecated
    public void setContentView(int layoutResID) {
        throw new RuntimeException("You should init content view by getContentViewLayoutId()");
    }

    @Deprecated
    public void setContentView(View view) {
        throw new RuntimeException("You should init content view by getContentViewLayoutId()");
    }

    @Deprecated
    public void setContentView(View view, ViewGroup.LayoutParams layoutParams) {
        throw new RuntimeException("You should init content view by getContentViewLayoutId()");
    }
}

